const propsMap = new Map([
  ['cardId', {label: '卡牌UID', prop: 'cardId', align: 'center'}],
  ['name', {label: '卡牌名称', prop: 'name', align: 'center'}],
  ['rating', {label: '评级类型', prop: 'rating', align: 'center'}],
  ['score', {label: '分数', prop: 'score', align: 'center'}],
  ['ratingNo', {label: '评级号码', prop: 'ratingNo', align: 'center'}],
  ['stockStatus', {label: '状态', prop: 'stockStatus', align: 'center'}],
  ['firstReviewResult', {label: '初审结果', prop: 'firstReviewResult', align: 'center'}],
  ['reviewResult', {label: '初审结果', prop: 'firstReviewResult', align: 'center'}],
  ['firstReviewResult', {label: '复核结果', prop: 'reviewResult', align: 'center'}],
  ['userWmsId', {label: '私人仓货架ID', prop: 'userWmsId', align: 'center'}],
  ['wmsStatus', {label: '入库状态', prop: 'wmsStatus', align: 'center'}]
])

// 获取根据prop列配置
const getColumns = (props) => props.map(prop => propsMap.get(prop))

const columnsMap = new Map([
  // 开箱初审打印送卡订单
  ['firstReview', getColumns(['cardId', 'name', 'rating', 'score', 'ratingNo', 'stockStatus', 'firstReviewResult'])],
  // 待复核打印送卡订单
  ['review', getColumns(['cardId', 'name', 'rating', 'score', 'ratingNo', 'stockStatus', 'firstReviewResult'])],
  // 待入库打印入库单
  ['putStore', getColumns(['cardId', 'name', 'rating', 'score', 'ratingNo', 'stockStatus', 'reviewResult', 'userWmsId', 'wmsStatus'])]
])

/**
 * 配置说明
 * tableColumns：表格列配置
 */
export default (prop) => columnsMap.get(prop)
